package com.graduation.vaccine.controller;


import com.graduation.vaccine.service.ActionService;
import com.graduation.vaccine.vo.RespBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ZhaoJunYao
 * @since 2022-04-21
 */
@RestController
@RequestMapping("/action")
@Api(tags = "权限模块")
public class ActionController {

    @Autowired
    private ActionService actionService;

    @GetMapping("/all")
    @ResponseBody
    @ApiOperation("权限列表")
    public RespBean getAll(){
        return RespBean.success(actionService.getAll());
    }
}
